package com.chaber.containers.views;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.stage.Modality;
import javafx.stage.Stage;

public class MessageView extends Stage {

	private BorderPane contentPane;
	private Label message;
	private Button confirmButton;
	
	public MessageView() {
		this.setTitle("Information");

		this.contentPane = new BorderPane();
		this.contentPane.setPadding(new Insets(50));
		
		this.message = new Label();
		this.message.setWrapText(true);
		BorderPane.setAlignment(this.message, Pos.CENTER);
		this.contentPane.setCenter(this.message);
		
		this.confirmButton = new Button("OK");
		BorderPane.setAlignment(this.confirmButton, Pos.CENTER);
		this.contentPane.setBottom(confirmButton);
		
		
		Scene scene = new Scene(this.contentPane, 300, 200);
		this.setScene(scene);
		this.initModality(Modality.APPLICATION_MODAL);
		this.hide();
	}
	
	public BorderPane getContentPane() {
		return contentPane;
	}

	public void setContentPane(BorderPane contentPane) {
		this.contentPane = contentPane;
	}

	public Label getMessage() {
		return message;
	}

	public void setMessage(Label message) {
		this.message = message;
	}

	public Button getConfirmButton() {
		return confirmButton;
	}

	public void setConfirmButton(Button confirmButton) {
		this.confirmButton = confirmButton;
	}
}
